<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/enterprise/enterpriseMember/enterpriseMember.js"></script>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <%--<link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/skins/laydate.css">--%>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.css">
    <script src="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.js"></script>
    <style>
        .fixed-table-toolbar {
            top: -2px;
            right: 160px;
        }

        .bootstrap-table .fixed-table-container .table thead th .th-inner {
            text-align: center !important;
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>企业会员</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>企业会员列表</strong>' +
            '</li>' +
            '</ol>';
    });


    var has_add = '';
    var has_edit = '';
    var has_delete = '';
    var MemberManager_enterpriseMember_add = false;
    var MemberManager_enterpriseMember_update = false;
    var MemberManager_enterpriseMember_look = false;
</script>


<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                    <input id="mobile" name="mobile" type="text" class="form-control shortInput" placeholder="手机号码">
                    <select class="form-control shortInput input-distance" id="enterpriseType" name="enterpriseType">
                        <option value="" selected>企业类型</option>
                        <option value="0">普通企业会员</option>
                        <option value="1">商户企业会员</option>
                    </select>
                    <input id="nickname" name="nickname" type="text" class="form-control shortInput input-distance"
                           placeholder="昵称">
                    <input id="enterpriseName" name="enterpriseName" type="text"
                           class="form-control shortInput input-distance"
                           placeholder="公司名称">
                    <shiro:hasPermission name="MemberManager_enterpriseMember_reload">
                        <button class="btn btn-success input-distance" onclick="enterpriseMember.reLoad()">查询</button>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="MemberManager_enterpriseMember_export">
                        <div class="pull-left search fr exportNumInput">
                            <input id="count" name="count" type="text" class="form-control" autocomplete="off"
                                   placeholder="导出条数">
                        </div>
                        <div class="pull-left search fr">
                            <button class="btn btn-success exportBtn"
                                    onclick="enterpriseMember.exportEnterpriseMember()">导出
                            </button>
                        </div>
                    </shiro:hasPermission>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>
</div>


<%--  重置密码模态框  --%>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog"
     aria-labelledby="exampleModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true"></span></button>
                <h4 class="modal-title" id="exampleModalLabel" data-dismiss="modal" aria-label="Close">
                    关闭</h4>
            </div>
            <div class="modal-body">
                <form id="contentForm" class="layui-form">
                    <div class="form-group row">
                        <label class="col-sm-4 col-form-label text-right">密码:</label>
                        <div class="col-sm-8">
                            <input class="form-control" id="password" name="password">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-4 col-form-label text-right">确认新密码:</label>
                        <div class="col-sm-8">
                            <input class="form-control" id="verifyPassword" name="verifyPassword">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-success" id="updateEnterprisePassword">确认</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>

<shiro:hasPermission name="MemberManager_enterpriseMember_add">
    <script>
        MemberManager_enterpriseMember_add = true;
    </script>
</shiro:hasPermission>
<shiro:hasPermission name="MemberManager_enterpriseMember_update">
    <script>
        MemberManager_enterpriseMember_update = true;
    </script>
</shiro:hasPermission>
<shiro:hasPermission name="MemberManager_enterpriseMember_look">
    <script>
        MemberManager_enterpriseMember_look = true;
    </script>
</shiro:hasPermission>
<script type="text/javascript">
    enterpriseMember.init();
</script>
</body>
</html>